package com.homework.service;

import com.homework.dao.EvaluationDao;

public class EvaluationService {
	private static EvaluationService softwareService = null;
	private EvaluationDao evaluationDao;
	
	public EvaluationService() {
		this.evaluationDao = EvaluationDao.getInstance();
	}
	
	public static EvaluationService getInstance() {
		if(softwareService == null) {
			softwareService = new EvaluationService();
		}
		return softwareService;
	}
	
	public boolean saveEvaluation(String json,String homeworkId)
	{
		return evaluationDao.saveEvaluation(json,homeworkId);
	}
	
	public String getEvaluation(String homeworkId)
	{
		return evaluationDao.getEvaluation(homeworkId);
	}
}
